

def reprint(s):
    if s=="":
        return s
    else:
        return reprint(s[1:])+s[0]
s=input("请输入一串字符串:")
print(reprint(s))